package edu.albany.assassin;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class PersonalPage extends Activity{
    @SuppressWarnings("unused")
	private TextView myinfo=null;
    private TextView info1=null;
    private TextView info2=null;
    private TextView info3=null;
    private Button startGame =null;
    private Button friendList =null;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.personal_page);
		myinfo = (TextView)findViewById(R.id.myinfo);
		info1 = (TextView)findViewById(R.id.info1);
		info2 = (TextView)findViewById(R.id.info2);
		info3 = (TextView)findViewById(R.id.info3);
		startGame = (Button)findViewById(R.id.startGame);
		startGame.setText("Start Game");
		startGame.setOnClickListener(new StartGListener());
		friendList = (Button)findViewById(R.id.friendList);
		friendList.setText("Friend List");
		friendList.setOnClickListener(new friendGListener());
	}
	class StartGListener implements OnClickListener{

		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent intent=new Intent();
			intent.setClass(PersonalPage.this, StartFriendsRequest.class);
			PersonalPage.this.startActivity(intent);
		}
   }
	class friendGListener implements OnClickListener{

		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent intent=new Intent();
			intent.setClass(PersonalPage.this, FriendList.class);
			PersonalPage.this.startActivity(intent);
		}
   }
}